package com.intelligentcar.springboot.service;

import com.intelligentcar.springboot.bean.Vehicle;
import org.apache.ibatis.session.RowBounds;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface VehicleServer {
    //车辆表中新增车辆
    public int vehicleadd(HttpServletRequest req,Vehicle vehicle);

    // 查询车辆表中的所有车辆信息
    public List<Vehicle> lookupvehicle(RowBounds rowBounds);

    //查询车辆表中的单条车辆信息
    public List<Vehicle> queryvehicle(Vehicle vehicle,RowBounds rowBounds);

    //只根据车号查询车辆表中的单条车辆信息
    public List<Vehicle> queryvehicle1(Vehicle vehicle,RowBounds rowBounds);
    //只根据车号查询车辆表中的单条车辆信息
    public List<Vehicle> queryvehicle2(Vehicle vehicle,RowBounds rowBounds);
    //只根据车号查询车辆表中的单条车辆信息
    public List<Vehicle> queryvehicle3(Vehicle vehicle,RowBounds rowBounds);
    //修改车辆表的车辆信息
    public int updatevehiclee( HttpServletRequest req,Vehicle vehicle);

    //删除车辆表的车辆信息
    public int deletevegicle(HttpServletRequest req,Vehicle vehicle);

    //查询车辆表中有多少个数据
    public int count();
    //查询车辆表中有多少个数据
    public int count1(Vehicle vehicle);
    //查询车辆表中有多少个数据
    public int count2(Vehicle vehicle);
    //查询车辆表中有多少个数据
    public int count3(Vehicle vehicle);
    //查询车辆表中有多少个数据
    public int count4(Vehicle vehicle);
    //查询车辆表中的所有车牌号
    public List<Vehicle> selectvehicle();
}
